package sctu.edu.java.year2016.team08.chenruixiu.day20160520.chapter4_1;

/**编写Java程序，实现判断变量x是奇数还是偶数
 * Created by Administrator on 2016/5/20.
 */
public class one {
    public static void main(String[] args) {
        int a = 15;
        if (a % 2 == 0) {

            System.out.println("a是偶数");
        } else {

            System.out.println("a是奇数");
        }


    }
}
